package cn.edu.nyist.integration.service;

import cn.edu.nyist.integration.common.ServerResponse;
import cn.edu.nyist.integration.entity.LogInfo;
import cn.edu.nyist.integration.entity.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

    ServerResponse<User> login(String username, String password);

    ServerResponse<String> register(User user);

    ServerResponse<User> updateInformation(User user);

    ServerResponse<User> selectById(String id);

    ServerResponse<User> checkAnswer(String question, String answer,String id);

    ServerResponse<String> resetPassword(String passwordOld, String passwordNew, User user);

    PageInfo selectAllLogInfo(int pageNum, int pageSize,String username);

    PageInfo selectUsers(int pageNum,int pageSize,String username,Integer role);

    ServerResponse delUserById(Long id);

    ServerResponse updateStatus(String username,String phone,Integer status);
}
